package com.central.scheduler.api.service;

import com.central.common.model.PageResult;
import com.central.common.model.Result;
import com.central.common.model.SysProject;
import com.central.common.model.WorkerServer;
import com.central.common.service.ISuperService;

import java.util.List;
import java.util.Map;
import java.util.Set;

/**
 * @author Tindy
 * @date 2021/7/3
 * @describe
 */
public interface IWorkerServerService extends ISuperService<WorkerServer> {
    Result add(String name, String description, String host);

    PageResult<WorkerServer> findWorkers(Map<String, Object> params);

    PageResult<WorkerServer> findWorkersByPro(Map<String, Object> params, Long proId);

    Result setPros(Long workerId, Set<Long> proIds);

    List<SysProject> getPros(Long workerId);

    Result removeByIdAndOff(Long workerId);
}